import request from '@/utils/request'
//用药管理接口

//用药查看列表
export function Medicationlist( query ) {
  return request({
    // url: '/pc/drugManage/selectDrugByDayAndPatientId',
    url: '/pc/drugManage/selectDrugAllByPatientId',
    method: 'get',
    params:query
  })
}
export function Medicationlook( query ) {
  return request({
    url: '/pc/drugManage/getUpAllDetailDurg',
    method: 'get',
    params:query
  })
}
//处方药列表
export function prescription(query) {
  return request({
    url: '/pc/drugManage/selectDrugAllByPatientId',
    method: 'get',
    params: query
  })
}
//处方药删除/查看删除
export function Drugdeletion(query) {
  return request({
    url: '/pc/drugManage/delOneDetailDurg',
    method: 'get',
    params: query
  })
}
//修改详情

// export function Drugdeletion(query) {
//   return request({
//     url: '/pc/drugManage/getUpAllDetailDurg',
//     method: 'get',
//     params: query
//   })
// }
//处方药修改
export function medicinealter(data) {
  return request({
    url: '/pc/drugManage/upOneDurg',
    method: 'put',
    data: data
  })
}

